<html>
<head>
    <title>常用指令：v-model</title>
    <script src="js/vue.js"></script>
    <script>
        window.onload = function() {
            new Vue({
               el: 'div', 
               data: {
                    name: 'tom', 
                    age:21,
                    flag: true,
                    nums: [11, 22, 33, 55],
                    user: {id:9527, name: '唐伯虎'}
               }
            }); 
        }
    </script>
</head>
<body>
    <div>
        用户名：<input type="text" v-model="name">
        <br>
        {{name}} <br>
        {{age}} <br>
        {{flag}} <br>
        {{nums}} <br>
        {{user}} <br>

    </div>
</body>
</html>
